package com.hjq.demo.ui.activity;

import android.view.LayoutInflater;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;

import com.hjq.demo.R;
import com.hjq.demo.common.MyActivity;
import com.hjq.demo.common.MyViewBindingActivity;
import com.hjq.demo.databinding.AboutActivityBinding;
import com.hjq.demo.ui.adapter.TestAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * author : Android 轮子哥
 * github : https://github.com/getActivity/AndroidProject
 * time   : 2018/10/18
 * desc   : 关于界面
 */
public final class AboutActivity extends MyViewBindingActivity<AboutActivityBinding> {

//    @Override
//    protected AboutActivityBinding onCreateViewBinding(@NonNull LayoutInflater layoutInflater) {
//        return AboutActivityBinding.inflate(layoutInflater);
//    }

    @Override
    protected void initView() {
        getBinding().tbAbout.setTitle("---");
        getBinding().recyclerAbout.setLayoutManager(new LinearLayoutManager(this));
        TestAdapter mAdapter=new TestAdapter();
        getBinding().recyclerAbout.setAdapter(mAdapter);
        List<String> list=new ArrayList<String>();
        list.add("1");
        list.add("1");
        list.add("1");
        mAdapter.setNewInstance(list);
    }

    @Override
    protected void initData() {

    }
}